package com.leon.apis.admin;

import com.leon.model.admin.dtos.ChannelDto;
import com.leon.model.admin.pojos.AdChannel;
import com.leon.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

@Api(value = "频道管理",tags = "channel",description = "频道管理API")
public interface AdChannelControllerApi {

    /**
     * 根据名称分页查询频道列表
     * @param dto
     * @return
     */
    @ApiOperation("频道分页列表查询")
    public ResponseResult findByNameAndPage(ChannelDto dto);

    /**
     * 新增频道
     * @param adChannel
     * @return
     */
    @ApiOperation("新增频道")
    public ResponseResult save(AdChannel adChannel);

    /**
     * 根据Id修改频道信息
     * @param adChannel
     * @return
     */
    @ApiOperation("根据Id修改频道信息")
    public ResponseResult update(AdChannel adChannel);

    /**
     * 根据Id删除频道
     * @param id
     * @return
     */
    @ApiOperation("根据Id删除频道")
    public ResponseResult deleteById(@ApiParam(value = "频道Id" ,required = true) Integer id);

    /**
     * 查询所有频道
     * @return
     */
    public ResponseResult findAll();
}